cmake_minimum_required(VERSION 2.6)
project(triangulation-simple)

# The version number.
set (TRIANGULATION_VERSION_MAJOR 0)
set (TRIANGULATION_VERSION_MINOR 9)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules/")

find_package(GLUT)
find_package(OpenGL)
find_package(Boost)
find_package(CGAL)
find_package(GMP)

add_definitions(-Wall -W -Wno-sign-compare -Wno-ctor-dtor-privacy -ggdb)
set(CMAKE_CXX_FLAGS "-g -Wall -std=gnu++0x -O2")
set(CMAKE_EXE_LINKER_FLAGS "-s")  ## Strip binary

include_directories ("${PROJECT_SOURCE_DIR}/mathematica")

add_subdirectory(mathematica)

#building just a library.
#add_library(mathematica 

# add_library(mathlib  ${mathematica})

set (MATH_LIBS ${MATH_LIBS} mathematica)

add_executable(triangulation-simple main.cpp )

target_link_libraries (triangulation-simple  ${MATH_LIBS})

add_subdirectory(include)